package com.taskcollection.test;

import com.taskcollection.control.LoginControl;
import com.taskcollection.mybitsspring.AgencySubject;
import com.taskcollection.mybitsspring.RealSubject;
import com.taskcollection.mybitsspring.Subject;
import com.taskcollection.service.TeacherService;
import com.taskcollection.util.ConfigUtil;
import com.taskcollection.util.SpringUtil;
import org.apache.ibatis.session.SqlSession;
import org.apache.ibatis.session.SqlSessionFactory;

import java.lang.reflect.Proxy;

/**
 * Created by Administrator on 2016/8/13 0013.
 */
public class testmain {
    public static void main(String[] args){
        RealSubject realSubject = new RealSubject();
        Subject proxy = (Subject) Proxy.newProxyInstance(Subject.class.getClassLoader(),new Class[]{Subject.class},new AgencySubject(realSubject));
        proxy.dosomething();
    }

}
